<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>贺卡</title>
<script type="text/javascript" src="js/jquery-2.2.0.min.js"></script>
<script type="text/javascript">
	$(function(){
		var page=Number(getQueryString("page"));
		var id=Number(getQueryString("id"));
		switch (page) {
		case 1:
			window.location.href="index5.html?id="+id+"&page="+page;
			break;
		case 2:
			window.location.href="index6.html?id="+id+"&page="+page;
			break;
		case 3:
			window.location.href="index7.html?id="+id+"&page="+page;
			break;
		case 4:
			window.location.href="index8.html?id="+id+"&page="+page;
			break;
		default:
			break;
		}
		/**
		 * 获取get参数
		 * @param name	
		 * @returns
		 */
		 function getQueryString(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
			var r = window.location.search.substr(1).match(reg);
			if (r != null) 
				return unescape(r[2]); 
			return '';
		}
	})
</script>
</head>
<body>

</body>
</html>